#ifndef _LIBRARY_H
#define _LIBRARY_H

#define SL(llist) ((sLibrary *)((llist)->data))

char *getLPath(char *name);

sLibResult  getLibraryByFileExt         (char *fn, enum LibraryType type);
sLibResult  getLibraryByFileType        (char *fn, enum LibraryType type);	// give a path to a file (without the extension) and a type and it'll return the library
sLibResult  getLibraryByFileType_cfs    (sFile *cf, char *bn, enum LibraryType type);
sLibResult  getLibraryById              (u32 id);
char *      getExtByLibResult           (sLibResult *lr);
sLibProc *	newLibInstance			    (sLibrary *lib);
void		deleteLibInstance		    (sLibProc *lp);

#endif

